/**
 * Copyright (c) 2017-2020 四川智慧云天 All rights reserved.
 *
 * https://www.sczhyt.cn
 *
 * 版权所有，侵权必究！
 */

package cn.sczhyt;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 打包成jar，使用这个
 */
//@SpringBootApplication
//public class SczhytApplication {
//
//	public static void main(String[] args) {
//		SpringApplication.run(SczhytApplication.class, args);
//	}
//
//}
/**
 * tomcat运行， 需要打包成war 使用这个
 */
@SpringBootApplication
public class SczhytApplication extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SczhytApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(SczhytApplication.class, args);
	}

}
